alias="The alias command will add a user defined alias.<CR_LF><CR_LF> The syntax for the alias command is <CR_LF><CR_LF>  alias name "def %1 %2*%3..." [minvars=n] <CR_LF><CR_LF>Where the alias definition must be in quotes and the optional minvars <CR_LF>argument defines the minimum number of variables which must be specified <CR_LF>when the alias is called from the command line."




scan="The scan command will perform a physical motor or q,h,k,l,e,ei,ef scan.<CR_LF><CR_LF>The syntax for the command is<CR_LF><CR_LF>   scan motor1 start stop step motor2 start stop step [n=npoints] [preset=channel,value]<CR_LF><CR_LF>The step can be omitted is the n=npoints argument is specified.<CR_LF>If the preset option is omitted, the default will be used.<CR_LF>Preset can either be 'channel value' or 'countfile path' if the <CR_LF>countfile option is being used."




drive="The drive command will drive a series of motors (or q,h,k,l,e,ei,ef) to the <CR_LF>specified position.<CR_LF><CR_LF>The syntax for the drive command is<CR_LF><CR_LF>    drive motor1 value1 motor2 value2 ..."




wait="Wait for a specified period of time.<CR_LF><CR_LF>The syntax for the wait command is:<CR_LF><CR_LF>    wait n<CR_LF>Where n is the number of seconds to wait for. OR <CR_LF><CR_LF>    wait a:b:c <CR_LF>Where a:b:c is the specified time in hours:minutes:seconds."




title="The title command specifies the experiment title.<CR_LF><CR_LF>The syntax for the title command is:<CR_LF><CR_LF>   title "experiment title" <CR_LF><CR_LF>where the experiment title must be in quotes."




count="The count command will count for a fixed preset.<CR_LF><CR_LF>The syntax for the count command is:<CR_LF><CR_LF>   count [preset channel value] [repeat=n] [channel1 channel2 ...]<CR_LF><CR_LF>The preset can be in the form 'channel value' or 'countfile path' if the countfile <CR_LF>option is used. The optional repeat=n argument will repeat the count n times.<CR_LF>The optional [channel1 channel2 ...] will only display the results for the <CR_LF>specified input channels."




ef="The ef command will put the instrument in a "Fixed final energy" configuration<CR_LF><CR_LF>The syntax of the ef command is:<CR_LF><CR_LF>   ef value <CR_LF><CR_LF>where value is the stored energy value."




ei="The ei command will put the instrument in a "Fixed incident energy" configuration<CR_LF><CR_LF>The syntax of the ei command is:<CR_LF><CR_LF>   ei value <CR_LF><CR_LF>where value is the stored energy value."




run="The run command is used to execute a macro.<CR_LF><CR_LF>The syntax for the run command is:<CR_LF><CR_LF>    run macroname var1 var2 ... <CR_LF><CR_LF>where macroname is the name of the macro and var1, var2, ... are variables <CR_LF>to be passed to the macro."




lattice="The lattice command sets the lattice parameters.<CR_LF><CR_LF>The syntax for the lattice command is:<CR_LF><CR_LF>  lattice a b c alpha beta gamma <CR_LF>OR<CR_LF><CR_LF>lattice [a=alat] [b=blat] [c=clat] [alpha=alphalat] [beta=betalat] [gamma=gammalat]<CR_LF><CR_LF>In the second syntax, any combination of individual lattice constants<CR_LF>can be specified."




comment="The comment command appends a text comment to the logfile.<CR_LF><CR_LF>The syntax for the comment command is:<CR_LF><CR_LF>    comment "This is the comment" <CR_LF><CR_LF>where the comment to be added is in quotes."




scanon="The scanon command sets the scanon variable to true.<CR_LF><CR_LF>The syntax for the scanon command is:<CR_LF><CR_LF>    scanon<CR_LF><CR_LF>The scanon structure is used to combine any set of drives and counts into a <CR_LF>properly formatted scan (in both the datafiles and logfile)."




scanoff="The scanoff command sets the scanon variable to false.  This will end the scan started by the scanon command.<CR_LF><CR_LF>The syntax for the scanoff command is:<CR_LF><CR_LF>    scanoff<CR_LF><CR_LF>The scanon structure is used to combine any set of drives and counts into a <CR_LF>properly formatted scan (in both the datafiles and logfile)."




stepbegin="The stepbegin command is used within the scanon structure to define where <CR_LF>the motor positions are to be recorded for the current datapoint.<CR_LF><CR_LF>The syntax for the stepbegin command is:<CR_LF><CR_LF>    stepbegin<CR_LF><CR_LF>"




stepend="The stepend command is used within the scanon structure to indicate that we <CR_LF>are moving to the next point in the scan.<CR_LF><CR_LF>The syntax for the stepend command is:<CR_LF><CR_LF>    stepend<CR_LF><CR_LF>"




countheader="The countheader command is used to specify the headers for the data/logfiles.<CR_LF>This is only effective in the countfile and scanon structures.<CR_LF>When envoked, each count in the data/logfile will have the specified name <CR_LF>attached to the input channel name (i.e. detector_name1, etc.)<CR_LF><CR_LF>The syntax for the countheader command is:<CR_LF><CR_LF>    countheader header1 header2 ...<CR_LF><CR_LF>where header1, header2, ... are the headers for the data/logfile."




defxy="The defxy command is used to specify the default x and y values for plotting <CR_LF>purposes.  This is only effective in the scanon structure.<CR_LF><CR_LF>The syntax for the defxy command is:<CR_LF><CR_LF>    defxy xvariable yvariable<CR_LF>."




plusminus="The plusminus command is used to specify the direction of scattering for <CR_LF>the monochromator, sample, and analyzer. <CR_LF><CR_LF>The syntax for the plusminus command is:<CR_LF><CR_LF>   plusminus +/-1 +/-1 +/-1    OR    plusminus +/- +/- +/-<CR_LF><CR_LF>The monochromator scattering direction is fixed for a given instrument and cannot be changed.<CR_LF>NOTE: All angles are positive in the trigonometric (i.e. counterclockwise) sense.<CR_LF>The standard W configuration is either "plusminus + - +" OR "plusminus - + -" <CR_LF>depending on the sign of the monochromator scattering direction."




spv="The spv command sets the scattering plane vectors.<CR_LF><CR_LF>The syntax for the spv command is:<CR_LF><CR_LF>    spv h1 k1 l1 h2 k2 l2 <CR_LF><CR_LF>where the scattering plane is defined by the peaks (h1,k1,l1) and (h2,k2,l2)."




peak1="The peak1 command sets the value for the 1st reflection to be used in the UB <CR_LF>matrix calculation.<CR_LF><CR_LF>The syntax for the peak1 command is:<CR_LF><CR_LF>    peak1 h k l s2 s1 sgl sgu ei ef    OR<CR_LF>    peak1 h k l<CR_LF><CR_LF>where the current motor positions are assumed in the second syntax."




peak2="The peak2 command sets the value for the 2nd reflection to be used in the UB <CR_LF>matrix calculation.<CR_LF><CR_LF>The syntax for the peak2 command is:<CR_LF><CR_LF>    peak2 h k l s2 s1 sgl sgu ei ef    OR<CR_LF>    peak2 h k l<CR_LF><CR_LF>where the current motor positions are assumed in the second syntax."




addpeak="The addpeak command adds a reflection to the list which is used in refinement <CR_LF>of the UB matrix.<CR_LF><CR_LF>The syntax for the addpeak command is:<CR_LF><CR_LF>    addpeak h k l s2 s1 sgl sgu ei ef   OR<CR_LF>    addpeak h k l <CR_LF>where the cuurent motor positions are assumed in the second syntax."




ubcalc="The ubcalc command calculates the UB matrix.<CR_LF><CR_LF>The syntax for the ubcalc command is:<CR_LF><CR_LF>    ubcalc mode    OR<CR_LF>    ubcalc n1 n2 n3 n4 n5 n6 n7 n8 n9    OR<CR_LF>    ubcalc file path<CR_LF><CR_LF>where mode is:<CR_LF>1. define scattering plane vectors, a single reflection, and the lattice constants.<CR_LF>2. define 2 non-colinear reflections are the lattice constants.<CR_LF>3. linear least-squares refinement of the orientation and lattice constants.<CR_LF><CR_LF>If n1-n9 are given, it reads this as the 9 elements of the 3x3 UB matrix array.<CR_LF>The file option reads from a UB matrix configuration file.  This can be used to <CR_LF>restore an old orientation and is used extensively in the GUI."




calc="The calc command calculates motor positions for a given h,k,l,e,ei,ef <CR_LF>(or vice-versa).<CR_LF><CR_LF>The syntax for the calc command is:<CR_LF><CR_LF>    calc motor1 value1 motor2 value2 ...<CR_LF><CR_LF>where motorn can be either a physical motor or a Q,E value."




showdest="The showdest command prints the destination for all specified motors in a <CR_LF>scan command.<CR_LF><CR_LF>The syntax for the scandest command is:<CR_LF><CR_LF>    scandest 0/1<CR_LF><CR_LF>where 1 will turn the option on and 0 will turn it off.<CR_LF>This command is useful for debugging and also for commands where the final <CR_LF>position and destination are intentially different (for instance, if a motor <CR_LF>is being held)."




begin="The begin command begins a new experiment.<CR_LF><CR_LF>The syntax for the begin command is:<CR_LF><CR_LF>    begin<CR_LF><CR_LF>This command will pop up a dialog box which must be filled in before the new <CR_LF>experiment will begin."




scantitle="The scantitle command sets the scan title to a specified value.<CR_LF><CR_LF>The syntax for the scantitle command is:<CR_LF><CR_LF>    scantitle "This is the scan title"<CR_LF><CR_LF>where the specified title must be in quotes."




users="The users command sets the users of the experiment to a specified value.<CR_LF><CR_LF>The syntax for the users command is:<CR_LF><CR_LF>    users "user1 user2 ..."<CR_LF><CR_LF>where the specified users must be included in quotes."




contact="The contact command sets the local contact for the experiment to a specified value.<CR_LF><CR_LF>The syntax for the contact command is:<CR_LF><CR_LF>    contact "local contact"<CR_LF><CR_LF>where the specified local contact must be in quotes."




initialize="The initialize command reads in the configuration files to initialize any changes.<CR_LF><CR_LF>The syntax for the initialize command is:<CR_LF><CR_LF>    initialize<CR_LF><CR_LF>"




monochromator="The monochromator command sets the d-spacing of the monochromator based on <CR_LF>definitions stored in the configuration file.<CR_LF><CR_LF>The syntax for the monochromator command is:<CR_LF><CR_LF>    monochromator name<CR_LF><CR_LF>where "name" must be defined with a corresponding d-spacing in the <CR_LF>configuration file."




analyzer="The analyzer command sets the d-spacing of the analyzer based on definitions <CR_LF>stored in the configuration file.<CR_LF><CR_LF>The syntax for the analyzer command is:<CR_LF><CR_LF>    analyzer name<CR_LF><CR_LF>where "name" must be defined with a corresponding d-spacing in the <CR_LF>configuration file."




help="The help command displays help information for built-in commands and aliases.<CR_LF><CR_LF>The syntax for the help command is:<CR_LF><CR_LF>    help command<CR_LF><CR_LF>where command must be either a built-in command or an alias."




preset="The preset command is used to set the default preset for counts and scans.<CR_LF><CR_LF>The syntax for the preset command is:<CR_LF><CR_LF>    preset channel value     OR <CR_LF><CR_LF>    preset countfile path<CR_LF><CR_LF>Where one can individually specify any of the arguments.  For instance, <CR_LF> "preset mon" followed by "preset 234" is identical to "preset mon 234".<CR_LF>The same is true for countfile path - i.e. "preset countfile" followed by <CR_LF>"preset path" is identical to "preset countfile path"."




sample="The sample command is used to set various properties of the sample.<CR_LF><CR_LF>The syntax for the sample command is:<CR_LF><CR_LF>    sample type value name "sample name" mosaic value<CR_LF><CR_LF>Where the 'value' of type can be either 'powder' or 'crystal', the value of <CR_LF>name must be included in quotes unless it is a single word, and the value of <CR_LF>mosaic is the mosaic spread of the sample in minutes.  Any combination of 1,2, or 3 arguments can be given in any order.""




collimation="The collimation command is used to set the instrumental collimation.<CR_LF><CR_LF>The syntax for the collimation command is: <CR_LF><CR_LF>    collimation Source-Monochromator Monochromator-Sample Sample-Analyzer Analyzer-Detector<CR_LF>      Example: collimation 40 40 60 120<CR_LF><CR_LF>Where the collimations are in minutes."




method=""




upperlimit=""




lowerlimit=""




hold=""




hide=""




zero=""




tolerance=""




logfileoutput=""




calibrate=""




scansim=""




defcount=""




mode=""









Standard aliases:




mcu




driverel




scanrel




